﻿using System;

namespace Basics104_ControlStructures
{
    /// <summary>
    /// Author: Mr. Jin Vincent N. Necesario
    /// Level: Beginner
    /// Problem: Write a program that displays the squares, cubes, and fourth powers of the numbers 1 through 5
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            int[] values = new int[] {1,2,3,4,5 };

            for (int value = 0; value < values.Length; value++)
            {
                for (int power = 2; power < 5; power++) 
                {
                    Console.WriteLine("{0}^{1} ={2}", values[value], power, Math.Pow(values[value], power));
                }
            }

            Console.ReadKey();
        }
    }
}
